package top.zhaoyuliu.logbook.client.connect.base;

import cn.hutool.core.util.IdUtil;
import lombok.Data;
import top.zhaoyuliu.logbook.client.compent.AppenderCompent;

/**
 * 
 * Copyright © 2021 Arain. All rights reserved.
 *
 * @Title: BaseBody.java
 * @Prject: logbook-client
 * @Package: top.zhaoyuliu.logbook.client.connect.base
 * @Description: <功能详细描述>
 * @author: Arain
 * @date: 2021年1月22日 下午4:03:51
 * @version: V1.0
 */
@Data
public class BaseBody {
	/**
	 * 消息发送时间
	 */
	private Long time = System.currentTimeMillis();
	/**
	 * 每条消息的唯一id
	 */
	private Long messageId = IdUtil.getSnowflake(1L, 1L).nextId();
	/**
	 * 自己是谁
	 */
	private String appId = AppenderCompent.getAppId();

	private String ip;
	
	private Integer port;

}
